Component({
  properties: {
    goods_desc: {
      type: Object
    },
    
    right_btn:{
      type:Boolean,
      value:false
    },
    right_text_show:{
      type:Boolean,
      value:false
    },

    left_text:{
      type:String,
      value:""
    },
    middle_text:{
      type:String,
      value:""
    },
    right_text:{
      type:String,
      value:""
    },
    right_text_btn:{
      type:String,
      value:""
    }

  },

  data: {
    base_url: "https://vip.join.ink/"
  },



  methods: {
    go_act_info(e){
      console.log(e,"e");
      let out_trade_no = e.currentTarget.dataset.act.order_id
      let tuan_type = e.currentTarget.dataset.act.tuan_type
      let order={out_trade_no,tuan_type}
      order=JSON.stringify(order)
      wx.redirectTo({
        url: `/pages/act_order_info/act_order_info?order=${order}`,
      })
    },
  
    left_click() {
      this.triggerEvent("leftClick")
    },
    middle_click() {
      this.triggerEvent("middleClick")
    },
    right_click() {
      this.triggerEvent("rightClick")
    },
    right_click_btn() {
      this.triggerEvent("rightClick_btn")
    }
  },
})